﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sy3_5
{
    internal class CountDistance
    {
        private float distance;

        private static float totalDistance;

        public float Distance
        {
            get { return distance; }
            set
            {
                distance = value;
                totalDistance += value;
            }
        }

        public static float TotalDistance
        {
            get { return totalDistance; }
        }
    }
}
